-
Notifications
You must be signed in to change notification settings - Fork 646
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tests/*: introduce go-dmflakey #628
Conversation
5b054e6
to
7b6b646
Compare
ping @ahrtr @serathius @jmhbnz REF: #622 (comment) |
7b6b646
to
5c9f8ac
Compare
tests/dmflakey/dmflakey.go
Outdated
defaultImgSize int64 = 1024 * 1024 * 1024 * 10 // 10 GiB | ||
defaultInterval = 2 * time.Minute |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please define the two items as constants.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure. Updated
// SyncFS attempts to synchronize filesystem before inject failure. | ||
syncFS bool | ||
// interval is used to determine how long the failure lasts. | ||
interval time.Duration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To double check, in positive case (e.g. AllowWrites), the interval is the "up interval"; otherwise it's the "down interval"? If yes, please add a comment to make it clearer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. Updated.
This commit is to add go-binding for go-dmflakey. It's used to simulate powerfailure with common filesystems. Signed-off-by: Wei Fu <fuweid89@gmail.com>
5c9f8ac
to
b05bec2
Compare
This commit is to add go-binding for go-dmflakey. It's used to simulate powerfailure with common filesystems.